package com.sdry.service.impl.zc;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdry.mapper.zc.ZcMsSpotCheckMapper;
import com.sdry.model.hpf.Part;
import com.sdry.model.workplace.MousseBundleSample;
import com.sdry.model.zc.ZcMsSpotCheckDetailsEntity;
import com.sdry.model.zc.ZcMsSpotCheckEntity;
import com.sdry.model.zc.ZcQueryCriteria;
import com.sdry.service.zc.ZcMsSpotCheckService;

/**
 * 
 * @ClassName:    ZcMsSpotCheckServiceImpl   
 * @Description:  膜丝抽检
 * @Author:       zc   
 * @CreateDate:   2018年10月18日 下午4:22:56   
 * @Version:      v1.0
 */
@Service
public class ZcMsSpotCheckServiceImpl implements ZcMsSpotCheckService {

	@Resource
	private ZcMsSpotCheckMapper zcMsSpotCheckMapper;
	/**
	 * 查询膜丝抽检单列表
	 */
	@Override
	public List<ZcMsSpotCheckEntity> selectMsSpotCheckList(ZcQueryCriteria zcQueryCriteria) {
		return zcMsSpotCheckMapper.selectMsSpotCheckList(zcQueryCriteria);
	}
	/**
	 * 查询膜丝抽检单列表数目
	 */
	@Override
	public int countMsSpotCheckList(ZcQueryCriteria zcQueryCriteria) {
		return zcMsSpotCheckMapper.countMsSpotCheckList(zcQueryCriteria);
	}
	/**
	 * 保存膜丝抽检单
	 */
	@Override
	public int insertMsSpotCheck(ZcMsSpotCheckEntity zcMsSpotCheckEntity) {
		return zcMsSpotCheckMapper.insertMsSpotCheck(zcMsSpotCheckEntity);
	}
	/**
	 * 删除膜丝抽检单
	 */
	@Override
	public int delMsSpotCheckArr(long id) {
		return zcMsSpotCheckMapper.delMsSpotCheckArr(id);
	}
	/**
	 * 编辑膜丝抽检单
	 */
	@Override
	public int updateMsSpotCheck(ZcMsSpotCheckEntity zcMsSpotCheckEntity) {
		return zcMsSpotCheckMapper.updateMsSpotCheck(zcMsSpotCheckEntity);
	}
	/**
	 * 查询膜丝抽检单详情
	 */
	@Override
	public List<ZcMsSpotCheckDetailsEntity> selectMsSpotCheckDetailsListByNumber(ZcQueryCriteria zcQueryCriteria) {
		return zcMsSpotCheckMapper.selectMsSpotCheckDetailsListByNumber(zcQueryCriteria);
	}
	/**
	 * 查询膜丝抽检单详情数量
	 */
	@Override
	public int countMsSpotCheckDetailsListByNumber(ZcQueryCriteria zcQueryCriteria) {
		return zcMsSpotCheckMapper.countMsSpotCheckDetailsListByNumber(zcQueryCriteria);
	}
	/**
	 * 保存膜丝抽检单详情
	 */
	@Override
	public int insertMsSpotCheckDetails(ZcMsSpotCheckDetailsEntity zcMsSpotCheckDetailsEntity) {
		return zcMsSpotCheckMapper.insertMsSpotCheckDetails(zcMsSpotCheckDetailsEntity);
	}
	/**
	 * 通过膜丝编码查询膜丝捆编码
	 * @param msCode
	 * @return
	 */
	@Override
	public MousseBundleSample selectMbCodeByMsCode(String msCode) {
		return zcMsSpotCheckMapper.selectMbCodeByMsCode(msCode);
	}
	/**
	 * 删除抽检单详情
	 */
	@Override
	public int delMsSpotCheckArrDetails(long id) {
		return zcMsSpotCheckMapper.delMsSpotCheckArrDetails(id);
	}
	/**
	 * 查询膜丝抽检统计表
	 */
	@Override
	public List<ZcMsSpotCheckDetailsEntity> selectMsSpotCheckStatisticsTable(ZcQueryCriteria zcQueryCriteria) {
		return zcMsSpotCheckMapper.selectMsSpotCheckStatisticsTable(zcQueryCriteria);
	}
	/**
	 * 查询膜丝抽检统计表数目
	 */
	@Override
	public int countMsSpotCheckStatisticsTable(ZcQueryCriteria zcQueryCriteria) {
		return zcMsSpotCheckMapper.countMsSpotCheckStatisticsTable(zcQueryCriteria);
	}
	/**
	 * 全查膜丝名称列表
	 * @return
	 */
	@Override
	public List<Part> selectMsNameList() {
		return zcMsSpotCheckMapper.selectMsNameList();
	}
	/**
	 * 通过膜丝名称查询膜丝规格
	 * @return
	 */
	@Override
	public List<Part> selectMsStandardListByName(String msName) {
		return zcMsSpotCheckMapper.selectMsStandardListByName(msName);
	}
}
